/**
 * @Author: 陈瑞鹏
 * @Date:   2022-10-20 09:18:00
 * @Last Modified by:   陈瑞鹏
 * @Last Modified time: 2022-10-20 09:20:57
 */
import mongoose from 'mongoose';

const Schema = mongoose.Schema;
const SignSchema: mongoose.Schema = new Schema({
  roleId: { type: Number, desc: '角色Id', index: true },
  id: { type: Number, desc: '签到id' },
  day: { type: String, desc: '天数' },
  week: { type: Number, desc: '周数' },
  isReceive: { type: Boolean, desc: "是否领取" },
}, { versionKey: false }).index({ roleId: 1, id: 1 });

const Sign = mongoose.model('Sign', SignSchema);
export default Sign;